#!/bin/sh

export DYLD_FALLBACK_LIBRARY_PATH="/opt/local/lib"

./configure --prefix=/opt/local \
        --with-config-file-path=/opt/local/etc/lighttpd \
        --enable-cgi \
        --enable-fpm \
        --with-fpm-user=_www \
        --with-fpm-group=_www \
        --disable-ipv6 \
        --with-libxml-dir=/opt/local \
        --with-openssl \
        --with-pcre-regex \
        --with-zlib \
        --with-curl \
        --enable-sockets \
        --enable-gd-native-ttf \
        --with-icu-dir=/opt/local \
        --with-gd \
        --with-iconv=/opt/local \
        --with-jpeg-dir=/opt/local \
        --with-png-dir=/opt/local \
        --with-freetype-dir=/opt/local \
        --with-mcrypt=/opt/local \
        --enable-mbstring \
        --with-mysql=mysqlnd \
        --with-mysqli=mysqlnd \
        --with-pdo-mysql=mysqlnd \
        --with-pdo-sqlite \
        --enable-soap \
        --enable-pcntl \
        --enable-sysvmsg \
        --enable-sysvsem \
        --enable-sysvshm \
        --with-tidy \
        --with-pear \
        --enable-intl